<template>

  <!--开始必须新建一个div根目录-->
  <div>
    <!--    <table>-->
    <!--      <tr>-->
    <!--        <td>标题</td>-->
    <!--        <td>内容</td>-->
    <!--      </tr>-->
    <!--      <tr v-for="i in list">-->
    <!--        <td>{{i.title}}</td>-->
    <!--        <td>{{i.centent}}</td>-->
    <!--      </tr>-->
    <!--    </table>-->
    {{ id }}
    {{ list111 }}
    {{ puserid }}
  </div>
</template>

<script>
export default {
  name: "sq",
  data() {
    return {
      id:this.$route.query.id,
      list111:[],
      puserid:localStorage.getItem('puserid')
    }
  },

  methods: {
    get_news() {
      this.$axios.get('users/newss/?id='+this.id+'&puserid='+ this.puserid)
        .then(res => {
          this.list111 = res.data.list
          if(res.data.code==10015){
            alert('没有次数')
            this.$router.push({"path":'news'})
          }
        })
    },
  },

  computed: {},

  mounted() {
    this.get_news()
  }
}
</script>

<style scoped>

</style>
